Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Conversation

mattiabertorello
Copy link

Added the vendor folder with all the dependencies and the files Gopkg.
Run go fmt
Added the pipeline of drone with the follow checks:

  • dep check -skip-lock
  • Check if the code is formatted
  • Run the tests
  • Run the linter golangci-lint run

After I correct some problem reported by the linter

@mattiabertorello mattiabertorello requested a review from rsora August 22, 2018 13:28
@mattiabertorello mattiabertorello force-pushed the feature/CM-136-improvements branch from 025a14d to 736aaf3 Compare August 22, 2018 15:46
@mattiabertorello mattiabertorello force-pushed the feature/CM-136-improvements branch from 4545ac3 to 21f7e8d Compare August 22, 2018 16:44
extra/main.go Outdated
@@ -34,7 +34,7 @@ type DylibMap struct {
}

func main() {
var v []DylibMap
var v = make([]DylibMap, len(os.Args[1:]))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this must be like make([]DylibMap, 0, len(os.Args[1:])) to obtain the same behavior

install.go Outdated
interfaces, err := net.Interfaces()
var macAddresses = make([]string, len(interfaces))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this must be like make([]string, 0, len(interfaces)) to obtain the same behavior

…vior

For example, make([]int, 0, 10) allocates an underlying array
//	of size 10 and returns a slice of length 0 and capacity 10 that is
//	backed by this underlying array.
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Mattia Bertorello seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants